import { ObjectUtility } from "../../Utility/ObjectUtility";

export class PacketBuffer
{
    public static ClassName:string = "PacketBuffer";
	protected bytes:Array<string>;
    public constructor()
    {
        this.bytes = [];
    }
    public push(data:any):void  
    {
        this.bytes.push(data);
        // for(let i:number = 0;i<data.byteLength;i++)
        //     this.bytes.push(data[i]);
    }
    public clear():void
    {
        this.bytes
    }
    public get packetBytes():Array<string>{return this.bytes;}
    public dispose():void
    {
        this.clear();
    }
}
